package cn.hipac.mall.before;

import java.util.logging.Level;

public class LogExample {
    private static final java.util.logging.Logger log = java.util.logging.Logger.getLogger(LogExample.class.getName());

    public static void main(String... args) {
        log.log(Level.SEVERE, "Something's wrong here");
    }

    private static class LogExampleOther {
        private static final org.slf4j.Logger log = org.slf4j.LoggerFactory.getLogger(LogExampleOther.class);

        public static void main(String... args) {
            log.error("Something else is wrong here");
        }
    }

    private static class LogExampleCategory {
        private static final org.apache.commons.logging.Log log = org.apache.commons.logging.LogFactory.getLog("CounterLog");

        public static void main(String... args) {
            log.error("Calling the 'CounterLog' with a message");
        }
    }
}




